package com.shop.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * (User)表实体类
 *
 * @author makejava
 * @since 2020-11-21 10:31:34
 */
@Data
@NoArgsConstructor
public class User extends Model<User> {

    private Integer id;
    //帐号
    private String account;
    //密码
    private String password;
    //姓名
    private String name;
    //性别
    private String gender;
    //年龄
    private Integer age;
    //电话
    private String phone;
    //默认地址
    private String address;
    //头像
    private String avatarUrl;
    //level表id
    private Integer vipId;
    //会员等级
    private String vipLevel;
    //0异常1正常2欠费
    private String vipStatus;
    //积分
    private Integer point;
    //主卡银行卡表id
    private String cardId;
    //创建时间
    private Date createTime;
    //更新时间
    private Date updateTime;

    private Integer createId;

    private Integer updateId;
    //0正常，1删除
    private String isDelete;
    //用户状态
    private String status;
    //备用状态
    private String statusOne;
    //备用状态
    private String statusTwe;

    private Integer version;

    private String openId;

    private String unionId;

    public User(String name, String gender, String avatarUrl, String openId, String unionId) {
        this.name = name;
        this.gender = gender;
        this.avatarUrl = avatarUrl;
        this.openId = openId;
        this.unionId = unionId;
    }
}